package org.chen.common.domain;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.chen.common.annotation.Excel;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysConfig {
    /** 参数键名 */
    @Excel(name = "参数键名")
    private String configKey;
    /** 参数键值 */
    @Excel(name = "参数键值")
    private String configValue;

    public void setConfigKey(String configKey)
    {
        this.configKey = configKey;
    }

    @NotBlank(message = "参数键值不能为空")
    @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
    public String getConfigValue()
    {
        return configValue;
    }


}
